﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Himall.Entity.Config
{
   public class ProductBrokerageInfoConfig : EntityTypeConfiguration<ProductBrokerageInfo>
    {
        public ProductBrokerageInfoConfig()
        {
            ToTable("Himall_ProductBrokerage");
            HasRequired(x => x.Himall_Products).WithMany(x => x.Himall_ProductBrokerage).HasForeignKey(x => x.ProductId);
            HasRequired(x => x.Himall_Shops).WithMany(x => x.Himall_ProductBrokerage).HasForeignKey(x => x.ShopId);
        }
    }
}
